package sctu.edu.java.year2016.team07.nieying.practice.Review;

/**
 * Created by Administrator on 2016/6/16 0016.
 */
public class Matrix {
    public static void main(String[] args){
        int arr[][]={{1,2,0},{3,4,0},{5,6,0}};
        System.out.println("输出数组：");
        for(int i=0;i<arr.length;i++){
            for(int j=0;j< arr[i].length;j++){
                System.out.println(arr[i][j]);
            }
            System.out.println();
       }

            System.out.println("先数组：");
            for(int i1=0;i1<arr.length;i1++){
                for(int j=0;j< arr[i1].length;j++){
                    System.out.println(arr[j][i1]);
                }
                System.out.println();
            }
        }

    }

